#ifndef WPLAYER
#define WPLAYER

#include <SFML\Graphics.hpp>
#include <SFML\Window\Keyboard.hpp>
#include "Artman.h"
#include "Character.h"
#include "CollisionSolver.h"
#include "Penis.h"
#include "Scrotum.h"

enum DJUMPSTATE {DJS_disabled, DJS_enabled, DJS_jump,DJS_ready,DJS_used};

class Player : public Character
{
	sf::Texture *p_spritesheets[2];
	Penis *m_penis;
	Scrotum *p_scrotum;
	bool m_loaded;
	DJUMPSTATE m_djumpstate;
	
	void ResetDjump();
	void SetJump();
	void ReleaseDjump();
	void Doublejump();
	void PlayerInput(float dt);
	void Land();
	void HandleCV(float dt);
	void ClimaxAttack();
	void HandleClimax(float dt);
	void HandleStrokeoff(float dt);
public:
	Player (sf::Vector2f position, Artman *artman,AnimationSolver *animator);

	~Player();

	void Update(float dt);




	void ExtraDraw(sf::RenderWindow &window);

	void LinkScrotum(Scrotum *sack);
};

#endif